<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  targetNamespace="Examples">

  <process id="process" isExecutable="true">

    <startEvent id="start" />
    <sequenceFlow sourceRef="start" targetRef="subprocess" />

    <subProcess id="subprocess">

      <startEvent id="innerStart" />

      <sequenceFlow sourceRef="innerStart" targetRef="gtw1" />

      <parallelGateway id="gtw1" />

      <sequenceFlow sourceRef="gtw1" targetRef="serviceTask1" />
      <serviceTask id="serviceTask1" camunda:expression="${true}" />
      <sequenceFlow sourceRef="serviceTask1" targetRef="gtw2" />

      <sequenceFlow sourceRef="gtw1" targetRef="serviceTask2" />
      <serviceTask id="serviceTask2" camunda:class="org.camunda.bpm.engine.test.history.SetVariableLocalService" />
      <sequenceFlow sourceRef="serviceTask2" targetRef="gtw2" />

      <parallelGateway id="gtw2" />

      <sequenceFlow sourceRef="gtw2" targetRef="task" />

      <userTask id="task" />

      <sequenceFlow sourceRef="task" targetRef="innerEnd" />

      <endEvent id="innerEnd" />

    </subProcess>

    <sequenceFlow sourceRef="subprocess" targetRef="end" />

    <endEvent id="end" />

  </process>

</definitions>